#ifndef  __RECORDPROCESSOR_H_
#define  __RECORDPROCESSOR_H_


#include "common.h"
#include "globals.h"
#include "logger.h"
#include "shared_func.h"
#include "descriptorManager.h"
#include "unitResource.h"
#include "textWei.h"
#include "display.h"

class RecordProcessor {
public:
  RecordProcessor() {}
  ~RecordProcessor() {}

  int load(char* datapath, DescriptorManager* _dm);
  int process_one(uint32_t id);
  void change_file(int fid);

private:
  DescriptorManager* dm;

  TextWei* m_tw;
  Display* m_disp;
  UnitResource* m_unit;
  char     m_datapath[INDEX_LEVEL_NUM][NAME_LEN];
};


#endif  //__RECORDPROCESS_H_
